package com.huiminpay.transaction.convert;


import com.huiminpay.transaction.dto.PayChannelDTO;
import com.huiminpay.transaction.entity.PayChannel;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;


@Mapper
public interface PayChannelCovert {

    PayChannelCovert INSTANCE = Mappers.getMapper(PayChannelCovert.class);




    PayChannelDTO entity2dto(PayChannel payChannel);
    PayChannel dto2entity(PayChannelDTO payChannelDTO);


    List<PayChannelDTO> entity2dtoList(List<PayChannel> payChannels);
    List<PayChannel> dto2entityList(List<PayChannelDTO> payChannelDTOS);


}
